# Maintainer: Martell Malone <Martell Malone at g mail dot com>

_realname=ninja

pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.5.1
pkgrel=1
pkgdesc="Ninja is a small build system with a focus on speed (mingw-w64)"
arch=('any')
url="http://martine.github.io/ninja"
license=('Apache')
depends=()
options=('strip' 'staticlibs')
makedepends=("python2")
source=("https://github.com/martine/ninja/archive/v${pkgver}.tar.gz")
md5sums=('59f4f1cf5d9bb0d7877a6d5a5afd770a')

prepare () {
  cd ${srcdir}/ninja-${pkgver}
}

build() {
  mkdir -p "${pkgdir}${MINGW_PREFIX}"/bin
  cd ${srcdir}/ninja-${pkgver}
  ./bootstrap.py --platform mingw
}

package() {
    mv "${srcdir}/ninja-${pkgver}/ninja.exe" "${pkgdir}${MINGW_PREFIX}"/bin/
}
